package com.example.securitydemo.services.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.securitydemo.entities.Role;
import com.example.securitydemo.mapper.RoleMapper;
import com.example.securitydemo.services.IRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IRoleService {
    @Override
    public List<Role> findUserRoleByUserId(long userId) {
        return this.baseMapper.findUserRoleByUserId(userId);
    }
}
